home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Texteditors
/
BED
/
Rexx
/
CommentBlk.bed
< prev
next >
Wrap
Text File
|
1996-09-26
|
971b
|
58 lines
/*
** $VER: CommentBlk.bed 1.0 (02.01.96)
**
** Comment out the selected block using ARexx comments
** (easily changed to C, Modula-2, Ada, or ASM comments)
*/
OPTIONS RESULTS
/* For ARexx commenting */
CommentStart = "/** "
CommentMid = "**** "
CommentEnd = "**/ "
/*
/* For C commenting */
CommentStart = "// "
CommentMid = "// "
CommentEnd = "// "
/* For Modula-2 or Pascal commenting */
CommentStart = "(**** "
CommentMid = " **** "
CommentEnd = " ****)"
/* For Ada commenting */
CommentStart = "-- "
CommentMid = "-- "
CommentEnd = "-- "
/* For ASM commenting */
CommentStart = "** "
CommentMid = "** "
CommentEnd = "** "
*/
GetBlkDims
PARSE VAR RESULT mode . start . end
IF mode = OFF THEN DO
SetStatusBar "Error: No block marked!"
END; ELSE DO
MarkBlk
Move start 1
Text '"' || CommentStart || '\n"'
RecordMacro QUIET
MoveSOL
Text '"' || CommentMid || '"'
MoveDown
EndMacro
PlayMacro end - start
Text '"' || CommentEnd || '\n"'
END